package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffEvaChangeRecordDto
 * @使用场景
 */
@Data
public class BffEvaChangeRecordDto implements Serializable {

    /**
     * 变更字段记录ID
     */
    @ApiModelProperty("变更字段记录ID")
    private String changeColumnId;

    /**
     * 主体变更日志类型
     */
    @ApiModelProperty("主体变更日志类型")
    private String subjectChangeType;

    /**
     * 主体批次下更新状态 NEW:本次新增 UNCHANGED:正常未变 REVISION:本次修订 ARCHIVE:本次存档
     */
    @ApiModelProperty("主体批次下更新状态")
    private String subjectUpdateStatus;

    /**
     * 是否内部属性 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否内部属性")
    private String isInproperties;

    /**
     * 变更字段行为日志名称
     */
    @ApiModelProperty("变更字段行为日志名称")
    private String objectPropertyName;

    /**
     * 原始字段中文内容
     */
    @ApiModelProperty("原始字段中文内容")
    private String oriColumnContent;

    /**
     * 变更字段中文内容
     */
    @ApiModelProperty("变更字段中文内容")
    private String columnContent;

    /**
     * 操作人就职记录ID
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffEvaChangeRecordDto that = (BffEvaChangeRecordDto) o;
        return changeColumnId == that.changeColumnId && subjectChangeType == that.subjectChangeType && subjectUpdateStatus == that.subjectUpdateStatus && isInproperties == that.isInproperties && objectPropertyName == that.objectPropertyName && oriColumnContent == that.oriColumnContent && columnContent == that.columnContent && operationInductionId == that.operationInductionId && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && operateTime == that.operateTime;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), changeColumnId, subjectChangeType, subjectUpdateStatus, isInproperties, objectPropertyName, oriColumnContent, columnContent, operationInductionId, userId, userFace, idCardName, nickName, operateTime);
    }


}
   